<html>
    <head>
        <title>Formulario de registro de alumnos</title>
        <link rel="icon" type="image/png" href="../images/sio.png">
		
		<!---------------------------------- DATEPICKER ------------------------------------->
		<!-- <link rel="stylesheet" typePreview post="text/css" href="../css/datepicker/demos.css"> -->
		<link rel="stylesheet" type="text/css" href="../css/datepicker/jquery-ui.css">
		 
		<script src="../js/datepicker/jquery-1.5.1.js"></script>
		<script src="../js/datepicker/jquery.ui.core.js"></script>
		<script src="../js/datepicker/jquery.ui.widget.js"></script>
		<script src="../js/datepicker/jquery.ui.datepicker.js"></script>
		
		<!----------------------------- Inicializaci�n del script ---------------------------->
		<script>
		$(function() {
		   $( "#fechaNac" ).datepicker({
			  changeMonth: true,
			  changeYear: true,
                          yearRange: 'c-50',
			  gotoCurrent: false,
			  showButtonPanel: true
		   });
		});
		</script>
		<!---------------------------------- DATEPICKER ------------------------------------->
    </head>
    <body background="../images/backgrounds/Believe2.png">
        <script type="text/javascript">
        $(document).ready(function(){
            $("#formAlta").validate({
                rules: {
                        apellido: {
                            required: true
                        },
                        nombre: {
                            required: true
                        },
                        documento: {
                            required: true
                        },
                        fechaNac: {
                            required: true
                        },
                        direccion: {
                            required: true
                        }
                        }
            });
        });
        </script>
        <?php
                //No incluir usuarioLogueado.php porque sino no pueden acceder usuarios no logueados...
                include('conexion.php');
                echo "
                                <p style='text-align:center; font-size:25px; font-weight:bold; color:#163a0e;'>Formulario p&uacute;blico de registro de alumnos</p>
                                <center>	
                                <fieldset style='width: 450px;'><legend><i>Agregar Nuevo Alumno</i></legend>
                                        <p>			
                                        <!--FORMULARIO-->			
                                        <form id='formAlta' name='formAlta' action='registroAlumnos2.php' method=POST>
                                                                          <table border=0>
                                                                                        <!-- <tr>	
											<td>Nro. Legajo:<br><br></td>
											<td><input type='text' name='nroLegajo' style='width:266px' autocomplete='off' readonly='readonly'><br><br></td>
										</tr> !-->
										<tr>
											<td>Apellido:<br><br></td> 				
											<td colspan=2><input type='text' id='apellido' name='apellido' style='width:214px' autocomplete='off'><br><br></td>
										</tr>
										<tr>
											<td>Nombres:<br><br></td> 				
											<td colspan=2><input type='text' id='nombre' name='nombre' style='width:105px' autocomplete='off'>
												<input type='text' id='nombre2' name='nombre2' style='width:105px' autocomplete='off'>
											<br><br></td>
										</tr>
										<tr>	
											<td>Documento:<br><br></td>
											<td colspan=2>
												<select id='tiposDocu' name='tiposDocu' style='width:80px'>
													<option value='dni' /> D.N.I
													<option value='lc' /> L.C.
													<option value='le' /> L.E.
													<option value='pp' /> PASAPORTE
													<option value='cuil' /> C.U.I.L.
													<option value='cuit' /> C.U.I.T.
												</select>
												<input type='text' id='documento' name='documento' style='width:130px' autocomplete='off'>
											<br><br></td>
										</tr>
										<tr>	
											<td>Fecha Nac.:<br><br></td>		
											<td>
                                                                                            <input type='text' id='fechaNac' name='fechaNac' style='width:80px' autocomplete='off'>
                                                                                            <br><br>
											</td>
                                                                                        <td rowspan=3 valign='top' style='width:110px'><img src='../images/people/students-add2.png' ></td>
										</tr>
										<tr>	
											<td>M&oacute;vil:<br><br></td>
											<td><input type='text' name='movil' id='bordeinput' style='width:151px' value='-' autocomplete='off'><br><br></td>
										</tr>
										</tr>
										<tr>	
											<td>Tel&eacute;fono:<br><br></td>
											<td><input type='text' name='telefono' id='bordeinput' value='-' style='width:151px' autocomplete='off'><br><br></td>
										</tr>
										<tr>	
											<td>Domicilio:<br><br></td>
											<td colspan=2><input type='text' id='direccion' name='direccion' id='domi' style='width:214px' autocomplete='off'><br><br></td>
										</tr>
										<tr>
											<td>E-mail:<br><br></td>
											<td colspan=2><input type='text' name='email' id='bordeinput' style='width:285px' value='-' autocomplete='off'><br><br></td>
										</tr>
										<tr>
											<td>Carrera:<br><br></td>
											<td colspan=2>
												<select name='nroCarrera' style='width:285px'>";
													$registros=mysql_query('select * from carreras order by carrera',$conexion);
													while($reg=mysql_fetch_array($registros))
														{
															echo "<option value=$reg[id_carrera]>$reg[carrera] - ID: $reg[id_carrera]</option>";	
														}
					echo "						</select>
												<br><br>
											</td>
										</tr>
                                                        <tr>	
                                                                <td colspan=3 align='center'><br />
                                                                        <input type='image' src='../images/buttons/guardar.png'> &nbsp;&nbsp;&nbsp;
                                                                        <a href='registroAlumnos.php'><img src='../images/buttons/restablecer.png' alt='Restablecer' /></a>
                                                                        <br><br>
                                                                        <a href='login.php'><img src='../images/buttons/volver.png' alt='Volver' /></a>
                                                                <br><br></td>
                                                        </tr>
                                                </table>
                                        </form>
                                        <!--FIN DE FORMULARIO ... -->
                                </fieldset>
                                <br>
                                </center>
                        ";
        ?>
    </body>
</html>